package com.lu.manage.modular.system.model.enums;

import java.util.ArrayList;
import java.util.List;

/**
 * @program sKnowledge_Blog
 * @description: 字典类型
 * @author: zhanglu
 * @create: 2019-07-06 21:25:00
 */
public enum DictTypeEnum {

    BASE("系统基本配置", "SYS_BASE"),
    ;

    private String name;
    private String code;

    DictTypeEnum(String name, String code) {
        this.name = name;
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public static List<String> codes(){
        List<String> codes = new ArrayList<>();
        for(DictTypeEnum o : DictTypeEnum.values()){
            codes.add(o.getCode());
        }
        return codes;
    }

    public static void main(String[] args) {
        System.out.println(DictTypeEnum.values());
    }

}
